package cn.wolfcode.controller;

import cn.wolfcode.domain.Department;
import cn.wolfcode.mapper.DepartMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller
@RequestMapping("/test")
public class TestController {

    /*@Autowired
    private DepartMapper departMapper;
    @RequestMapping("/test")
    public String test(Model model){

        *//*model.addAttribute("user","hello");
        List<Department> list = departMapper.selectList();
        model.addAttribute("deptlist",list);
        return "t";*//*
    }*/
}
